<template>
    <a-image v-bind="props" :src="url"></a-image>
</template>

<script lang="ts" setup>
    import { computed } from 'vue';


    const props = withDefaults(defineProps<{
        src : string;
        preview? : boolean;
        width? : string | number;
        height : string | number;
    }>(), {
        preview : true
    })






    const url = computed(() => {
        return props.src ? import.meta.env.B_NET_STATIC_URL + props.src : ''
    })

</script>